package com.itcs.trading.mapper;

import java.util.Map;

import org.apache.ibatis.annotations.Update;

import com.itcs.trading.model.UserAccountOpHis;

public interface UserAccountOpHisMapper {
    int deleteByPrimaryKey(String transNo);

    int insert(UserAccountOpHis record);

    int insertSelective(UserAccountOpHis record);

    UserAccountOpHis selectByPrimaryKey(String transNo);

    int updateByPrimaryKeySelective(UserAccountOpHis record);

    int updateByPrimaryKey(UserAccountOpHis record);
    /**
     *zhaojins 20171224 支付完成后更新相应金额
     * */
    @Update(" update user_account_op_jnl set change_balance = #{changeBalance,jdbcType=DECIMAL}, old_balance = #{oldBalance,jdbcType=DECIMAL}, now_balance = #{nowBalance,jdbcType=DECIMAL}where user_id = #{userId,jdbcType=BIGINT}")
    int updateAccountOp(Map<String,Object> paramMap);//更新原有、现在、变动金额
}